<?php
include_once("../config.php");

$uid = $_GET['uid'];
$uid = str_ireplace($search, '', $uid);

$sql = "select user.ming as ming,user.tel as tel,danwei.name as dw,
		user.qianming as qm,danwei.id as id from user 
		left join danwei on user.danwei=danwei.id where user.openid='$uid'";
$requ = mysqli_query($con,$sql);
$rs=mysqli_fetch_array($requ);
$ming = $rs['ming'];
$tel = $rs['tel'];
$dwname = $rs['dw'];
$dwid = $rs['id'];
if(empty($rs['qm'])){
	$qm='0';
}else{
	$qm=$url.'mini/qianming/'.$rs['qm'];
}

$result='{"status":"1","msg":"ok","qm":"'.$qm.'","ming":"'.$ming.'","tel":"'.$tel.'","dw":"'.$dwname.'","dwid":"'.$dwid.'"}';

echo $result;








